// welcome.js
const app = getApp();
Page({
  data: {
    motto:"开始体验"
  },
  onLoad: function (options) {
    // 页面初始化 options为页面跳转所带来的参数
    console.log('程序开始加载了');
    var that = this;
    app.getUserInfo(function(userInfo){
      that.setData({userInfo:userInfo});
      console.log("userInfo" + userInfo)
    })
  },
  bindViewTap(){
    wx.redirectTo({
      url: '../board/board',
    })
  }
})